package com.otitan.la.forest.industry.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * 供销服务
 *
 * @author jiacs
 * @email xxx
 * @date 2020-10-16 17:27:51
 */
@Data
@TableName("\"BSS_SUPPLY_MARKET\"")
@ApiModel("供销服务实体")
public class SupplyMarketEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
    * 主键ID
    */
    @ApiModelProperty(value = "主键ID", required = false)
    @TableId("\"ID\"")
    private String id;

    /**
    * 企业名称
    */
    @ApiModelProperty(value = "企业名称", required = true)
    @NotEmpty(message = "企业名称不能为空")
    @Length(max = 40, message = "企业名称不能超过 40 个字符")
    @TableField("\"ENTERPRISE_NAME\"")
    private String enterpriseName;

    /**
    * 联系人
    */
    @ApiModelProperty(value = "联系人", required = true)
    @NotEmpty(message = "联系人不能为空")
    @Length(max = 10, message = "联系人不能超过 10 个字符")
    @TableField("\"CONTACT_NAME\"")
    private String contactName;

    /**
    * 联系电话
    */
    @ApiModelProperty(value = "联系电话", required = true)
    @NotEmpty(message = "联系电话不能为空")
    @Length(max = 16, message = "联系电话不能超过 16 个字符")
    @TableField("\"CONTACT_PHONE\"")
    private String contactPhone;

    /**
    * 需求描述
    */
    @ApiModelProperty(value = "需求描述", required = false)
    @Length(max = 85, message = "需求描述不能超过 85 个字符")
    @TableField("\"REQUIRE_DES\"")
    private String requireDes;

    /**
    * 类别
    */
    @ApiModelProperty(value = "类别", required = true)
    @NotEmpty(message = "类别不能为空")
    @TableField("\"TYPE\"")
    private String type;

    /**
    * 交易类型
    */
    @ApiModelProperty(value = "交易类型", required = true)
    @NotEmpty(message = "交易类型不能为空")
    @TableField("\"TRANSACTION_TYPE\"")
    private String transactionType;

    /**
    * 创建人
    */
    @ApiModelProperty(value = "创建人", required = false)
    @TableField(value = "\"CREATE_USER\"", fill = FieldFill.INSERT)
    private String createUser;

    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间", required = false)
    @TableField(value = "\"CREATE_DATE\"", fill = FieldFill.INSERT)
    private Date createDate;

    /**
    * 修改人
    */
    @ApiModelProperty(value = "修改人", required = false)
    @TableField(value = "\"UPDATE_USER\"", fill = FieldFill.INSERT_UPDATE)
    private String updateUser;

    /**
    * 修改时间
    */
    @ApiModelProperty(value = "修改时间", required = false)
    @TableField(value = "\"UPDATE_DATE\"", fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;


}
